<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>测试</title>
</head>
<body style="padding-left: 50px">
  <h1>自定义函数</h1>

  <h2>1.自定义函数(整数排序sort_int)</h2>
  <div>
      <ul>
          <#assign myList=[2,3,4,5,1,9,8,6,4,6,7]/>
          <li>未排序</li>
          <#list myList as item>
              ${item},
          </#list>

          <li>已排序</li>
          <#list sort_int(myList) as item>
             ${item},
          </#list>
          <#assign myList=[2,3,4,5,1,9,8,6,4,6,7]/>
          <li>已排序</li>
          <#list myList?sort?reverse as item>
              ${item_index}:${item}<br/>
          </#list>
          ${myList?size}
          ${myList[3]}
      </ul>
  </div>
</body>
</html>